# 环境配置
from flask import Flask
from flask_sqlalchemy import SQLAlchemy


class Config:
    # 关于数据库配置环境
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:jyl9601194415@127.0.0.1:3306/company"
    SQLALCHEMY_TRACK_MODIFICATIONS = False  # 不追踪

    # session 对应的秘钥值
    SECRET_KEY = 'sdfa32jk3h4k2j34hdfsiufifiooodfuis'

    # CSRF 是否激活跨站保护
    CSRF_ENDBLED = True

    # 设置session对应的私钥
    SECRET_KEY = 'djfiof89dfsif2rwekjwfkdopiosdpfis8908sd'


class DevelopmentConfig(Config):
    ENV = 'development'
    DEBUG = True


class ProductionConfig(Config):
    ENV = 'production'
    DEBUG = False
